package com.antdesignbackend.backend.activiti.processrecord.service.impl;


import com.antdesignbackend.backend.activiti.processrecord.entity.entityVo.ProcessrecordVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.activiti.processrecord.mapper.ProcessrecordMapper;
import com.antdesignbackend.backend.activiti.processrecord.entity.Processrecord;
import com.antdesignbackend.backend.activiti.processrecord.service.ProcessrecordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class ProcessrecordServiceImpl extends ServiceImpl<ProcessrecordMapper, Processrecord> implements ProcessrecordService {

    @Autowired
    ProcessrecordMapper processrecordMapper;

    @Override
    public List<ProcessrecordVo> search(QueryWrapper<ProcessrecordVo> queryWrapper, Page<ProcessrecordVo> page) {
        return processrecordMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<ProcessrecordVo> queryWrapper) {
        return processrecordMapper.count(queryWrapper);
    }
}
